package com.ruoyi.project.digital.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 系统消息  对象 t_notice
 *
 * @author ruoyi
 * @date 2023-10-31
 */
@TableName("t_notice")
public class Notice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 0代表已读，1代表未读 */
    @Excel(name = "0代表已读，1代表未读")
    private String isRead;

    /** 阅读时间 */
    @Excel(name = "阅读时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date readTime;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 0代表官方消息，1代表宠物消息,2、代表任务 */
    @Excel(name = "0代表官方消息，1代表宠物消息,2、代表任务")
    private String chanel;

    /** 头像  */
    @Excel(name = "头像 ")
    private String avterImage;

    private String type;

    /** 消息标题 */
    @Excel(name = "消息标题")
    private String noticeTitle;

    private Long  userId;

    private String userName;

    private String showType;

    /** 主健 */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    public void setIsRead(String isRead)
    {
        this.isRead = isRead;
    }

    public String getIsRead()
    {
        return isRead;
    }
    public void setReadTime(Date readTime)
    {
        this.readTime = readTime;
    }

    public Date getReadTime()
    {
        return readTime;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setChanel(String chanel)
    {
        this.chanel = chanel;
    }

    public String getChanel()
    {
        return chanel;
    }
    public void setAvterImage(String avterImage)
    {
        this.avterImage = avterImage;
    }

    public String getAvterImage()
    {
        return avterImage;
    }
    public void setNoticeTitle(String noticeTitle)
    {
        this.noticeTitle = noticeTitle;
    }

    public String getNoticeTitle()
    {
        return noticeTitle;
    }
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public String getShowType() {
        return showType;
    }

    public void setShowType(String showType) {
        this.showType = showType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("isRead", getIsRead())
            .append("readTime", getReadTime())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("content", getContent())
            .append("chanel", getChanel())
            .append("avterImage", getAvterImage())
            .append("noticeTitle", getNoticeTitle())
            .append("id", getId())
            .toString();
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}
